package com.dt.common.validation.impl;

import com.dt.common.validation.ValidatorConfiguration;
import com.dt.common.validation.itf.RuntimeConfiguration;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class DefaultRuntimeConfiguration implements RuntimeConfiguration {
	/**
	 * meta bean class
	 */
	private Class<?> metaClass;

	/**
	 * 检查时是否快速失败
	 */
	private boolean fastFailure = true;

	public DefaultRuntimeConfiguration(ValidatorConfiguration config) {
		this.metaClass = config.getMetaClass();
		this.fastFailure = config.isFastFailure();
	}

}
